package me.gm.stcont.validator;

import me.gm.stcont.model.Phone;

import org.apache.log4j.Logger;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

public class PhoneValidator implements Validator {

	private Logger logger;

	public PhoneValidator() {
		this.logger = Logger.getLogger(this.getClass());
	}

	public boolean supports(Class<?> clazz) {
		return Phone.class.equals(clazz);
	}

	public void validate(Object target, Errors errors) {
		logger.debug("started validate");
		logger.debug("finished validate");
	}

}
